package com.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/* *
 * @Author nxj
 * @Date 2023 08 2023/8/9 16 03
 * */
@Data
@ToString
@TableName("race_info")
public class RaceInfo {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private Integer qid;
    private Integer rid;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date enddate;
    private Integer rank;


}
